﻿@{
    string? errmsg = ViewData["errmsg"] as string;
}

<h1>登录</h1>
<form asp-action="LoginExe" method="post">
    <table class="table">
        <tr>
            <td>用户名</td>
            <td><input class="input" name="user" required placeholder="用户名" /></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input class="input" type="password" name="pwd" required placeholder="密码" /></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input class="okButton" type="submit" value="登录" />
            </td>
        </tr>
    </table>
    <div>
        @if (errmsg is not null)
        {
            <div style="color:red">
                @errmsg
            </div>
        }
    </div>
</form>